#include <iostream>

using namespace std;

void bubbleSort(int* a, int n)
{
	int temp;
	for (int i = 0; i < n - 1; i++)
	{
		for (int j = 0; j < n - 1; j++)
		{
			//Ascending order
			if (a[j] > a[j + 1])
			{
				temp = a[j];
				a[j] = a[j + 1];
				a[j + 1] = temp;
			}
		}
	}
}

int main()
{
	int num[10] = { 85,22,90,86,80,54,3,11,18,4 };
	bubbleSort(num, 10);
	for (int i = 0; i < 10; i++)
	{
		if (i == 0)
		{
			cout << num[i];
		}
		else
		{
			cout << "," << num[i];
		}
	}
	cout << endl;
}